package com.zhentao.service.impl;

import com.zhentao.mapper.WmChannelMapper;
import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.model.wemedia.pojo.WmChannel;
import com.zhentao.service.WmChannelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Date 2024/5/13 9:36
 * @Author xdm
 **/
@Service
public class WmChannelServiceImpl implements WmChannelService {

    @Autowired
    private WmChannelMapper wmChannelMapper;

    @Override
    public ResponseResult findAll() {

        List<WmChannel> wmChannelList = wmChannelMapper.selectList(null);
        return ResponseResult.okResult(wmChannelList);
    }
}